using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SkeleAttackState : SkeleEnemyState
{
    public SkeleAttackState(SkeleEnemy skele, StateMachine stateMachine, string animName) : base(skele, stateMachine, animName)
    {
    }

    public override void Enter()
    {
        base.Enter();
    }

    public override void Exit()
    {
        base.Exit();
        skele.lastTimeAttacked = Time.time;
    }

    public override void Update()
    {
        base.Update();
        skele.SetZeroVelocity();
        if (triggerCalled)
            stateMachine.ChangeState(skele.battleState);
    }
}
